package com.ipartek.formacion.bean.comparadores;

import java.util.Comparator;

import com.ipartek.formacion.beans.Persona;

public class ComparatorPersonaDNI implements Comparator<Persona> {

	@Override
	public int compare(Persona o1, Persona o2) {
		return o1.getDni().compareToIgnoreCase(o2.getDni());
	}

}
